package crm.sfh.server.entity;

import android.text.TextUtils;

/**
 * 功能描述:公告
 *
 * @date 2018/6/7
 */
public class ENotice {
    String fromUserId;
    String fromUserName;
    String fromUserHead;

    String toUserId;
    String toUserName;
    String toUserHead;

    String giftName;
    String giftUrl;
    /**
     * 0 普通 1 特效 2土豪 3奢侈
     */
    String giftType;
    /**增加魅力值*/
    int giftCharm;

    String createTime;

    public void setFromUserId(String fromUserId) {
        this.fromUserId = fromUserId;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public void setFromUserHead(String fromUserHead) {
        this.fromUserHead = fromUserHead;
    }

    public void setToUserId(String toUserId) {
        this.toUserId = toUserId;
    }

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName;
    }

    public void setToUserHead(String toUserHead) {
        this.toUserHead = toUserHead;
    }

    public void setGiftName(String giftName) {
        this.giftName = giftName;
    }

    public void setGiftUrl(String giftUrl) {
        this.giftUrl = giftUrl;
    }

    public void setGiftType(String giftType) {
        this.giftType = giftType;
    }

    public void setGiftCharm(int giftCharm) {
        this.giftCharm = giftCharm;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getFromUserId() {
        return fromUserId;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public String getFromUserHead() {
        return fromUserHead;
    }

    public String getToUserId() {
        return toUserId;
    }

    public String getToUserName() {
        return toUserName;
    }

    public String getToUserHead() {
        return toUserHead;
    }

    public String getGiftName() {
        return giftName;
    }

    public String getGiftUrl() {
        return giftUrl;
    }

    public String getGiftType() {
        return giftType;
    }

    public String getCreateTime() {
        return createTime;
    }

    public int getGiftCharm() {
        return giftCharm;
    }

    public String getTypeText() {
        return TextUtils.equals("0", giftType) ? "普通" : TextUtils.equals("1", giftType) ? "特效" : TextUtils.equals("2", giftType) ? "土豪" : "奢侈";
    }
}
